package com.example.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.common.QueryBaseParam;
import com.example.demo.domain.entity.TrainClass;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.domain.model.TrainClassForm;
import com.example.demo.param.TrainClassParam;

import java.util.List;

/**
* @author liguang
* @description 针对表【train_class(培训系统-班级)】的数据库操作Service
* @createDate 2023-10-23 22:42:58
*/
public interface TrainClassService extends IService<TrainClass> {


    /**
     * 新增培训班级
     * @param form
     * @return
     */
    Boolean insertTrainClass(TrainClassForm form);


    List<TrainClass> getByIds(List<Long> classIds);

    Page<TrainClass> getByIdsAndPage(List<Long> classIds, QueryBaseParam queryBaseParam);

    Page<TrainClass> queryTrainClass(TrainClassParam param);

    List<TrainClass> queryAllTrainClassByCompanyId(Long companyId);

    TrainClass queryByInviteCode(String inviteCode);

    List<TrainClass> queryTrainClassByNameAndUserId(String name, Long id);
}
